package com.novel.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class StringUtils {

	public static String deleteNum(String str){
        Pattern pattern = Pattern.compile("[\\d]");
        Matcher matcher = pattern.matcher(str);
        return matcher.replaceAll("").trim();
	}
	public static String transfer(String str){
		/*String s1 = str.replaceAll("\"", "“");
		//String s2 = s1.replaceAll("\\\\", "&fanxiegang");
		String s2 = s1.replaceAll("/", "&zhengxiegang");
		String s3 = s2.replaceAll(":", "&maohao");
		String s4 = s3.replaceAll("_", "&xiahuaxian");
		return s4;*/
		return str;
	}
	public static String deTransfer(String str){
		/*String s1 = str.replaceAll( "“","\"");
		//String s2 = s1.replaceAll("&fanxiegang","\\");
		String s2 = s1.replaceAll( "&zhengxiegang","/");
		String s3 = s2.replaceAll( "&maohao",":");
		String s4 = s3.replaceAll("&xiahuaxian","_");
		return s4;*/
		return str;
	}
}
